package me.alide.modules.sys.form;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author wutairui
 *         Created on 2019/9/29.
 */

@Data
public class DtreeMenu {

    public DtreeMenu() {
    }

    public DtreeMenu(Long id, Long parentId, String title, Integer orderNum) {
        this.id = id;
        this.parentId = parentId;
        this.title = title;
        this.orderNum = orderNum;
    }

    private Long id;

    private Long parentId;

    private String title;

    private Integer orderNum;

    private List<DtreeMenu> children = new ArrayList<>();

    private List<CheckStatus> checkArr = new ArrayList<>();




    public static class CheckStatus {
        public CheckStatus() {
        }

        public CheckStatus(int type, int checked) {
            this.type = type;
            this.checked = checked;
        }

        public int type = 0;
        public int checked = 0;
    }
}
